import { gstyRequestAuth, gstyRequestToken } from '../'
//获取授权码
export async function getAuthorize(params) {
    return gstyRequestAuth.get({
        url: '/auth/oauth/authorize',
        showLoading: true,
        params
    })
}
//获取 access_token
export async function getAccessToken(data) {
    return gstyRequestToken.post({
        url: '/auth/oauth/token',
        showLoading: true,
        data
    })
}
//获取当前登录信息
export async function getUserAuthInfo(params) {
    return gstyRequestAuth.get({
        url: '/auth/v1/user/me',
        showLoading: true,
        params
    })
}